<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>具体商品信息</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen" />

</head>
<body>
<div th:replace="common/top">

</div>
<div id="BackLink">
    <a th:href="@{'viewProduct?productId='+${item.product.productId}}" th:text="'Return to '+${item.product.productId}">Return to ${sessionScope.product.productId}</a>
</div>
<div id="Content">
    <div id="Catalog">

        <table>
            <tr>
                <td th:utext="${item.product.description}">${sessionScope.product.description}</td>
            </tr>
            <tr>
                <td th:text="${item.itemId}"><b> ${sessionScope.item.itemId} </b></td>
            </tr>
            <tr>
                <td th:text="${item.attribute1}+' '+${item.product.name}"><b><font size="4"> ${sessionScope.item.attribute1}
                    ${sessionScope.item.attribute2} ${sessionScope.item.attribute3}
                    ${sessionScope.item.attribute4} ${sessionScope.item.attribute5}
                    ${sessionScope.product.name} </font></b></td>
            </tr>
            <tr>
                <td th:text="${item.product.name}">${sessionScope.product.name}</td>
            </tr>
            <tr>
                <td th:if="${item.quantity <= 0}">
                    Back ordered.
                <p th:if="${item.quantity > 0}">
                    ${sessionScope.item.quantity} in stock.
                </p>
                </td>
            </tr>
            <tr>
                <td th:text="${item.listPrice}">
<!--                    <fmt:formatNumber value="${sessionScope.item.listPrice}"-->
<!--                                      pattern="$#,##0.00" />-->
                </td>
            </tr>

            <tr>
                <td>
                    <a class="Button" th:href="@{'addItemToCart?workingItemId='+${item.itemId}}">Add to Cart</a>
                </td>
            </tr>
        </table>

    </div>
</div>
<div th:replace="common/bottom">

</div>
</body>
</html>